using System;
using UnityEngine;

public struct InputState
{
	private bool m_attack;
	private Vector2 m_leftStick;
	private bool m_run;

	public bool Attack 
	{
		get { return m_attack; }
	}

	public Vector2 LeftStick
	{
		get { return m_leftStick; }
	}

	public bool Run
	{
		get { return m_run; }
	}

	public static InputState GetInputState()
	{
		InputState inputState = new InputState ();

		inputState.m_attack = Input.GetButtonDown ("Attack");
		inputState.m_leftStick = new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));
		inputState.m_run = Input.GetButton ("Run");

		return inputState;
	}
}